//
//  CBTextView.h
//  CBTextView
//
//  Created by ly on 13-9-18.
//  Copyright (c) 2013年 ly. All rights reserved.
//


///***** 带placeHolder的textView

#import <UIKit/UIKit.h>
#import "XXTextView.h"
@interface CBTextView : UIView
{
    UIColor *defaultTextColor;
    NSString *prevText;
}

@property (strong, nonatomic) XXTextView *textView;

/**
 placeHolder
 */
@property (strong, nonatomic) NSString *placeHolder;

/**
 placeHolder的颜色
 */
@property (strong, nonatomic) UIColor *placeHolderColor;

@property (weak, nonatomic) id<UITextViewDelegate> aDelegate;


/**
 初始换带placeHolder的textView

 @param frame frame
 @param leftSpace 左间距
 @param rigSpace 右间距
 @param topSace 上间距
 @param botSpace 下间距
 */
- (id)initWithFrame:(CGRect)frame leftSpace:(CGFloat)leftSpace rigSpace:(CGFloat)rigSpace topSpace:(CGFloat)topSace botSpace:(CGFloat)botSpace;

/**
 初始换带placeHolder的textView

 @param frame frame
 @param leftAndRigSpace 左右间距
 */
- (id)initWithFrame:(CGRect)frame leftAndRigSpace:(CGFloat)leftAndRigSpace;
@end
